<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../../css/common.css" />
		<link rel="stylesheet" type="text/css" href="../../css/my/setup.css" />
	</head>

	<body>
		<div id="setup">
			<header class="mui-bar mui-bar-nav">
				<a class="mui-action-back mui-icon mui-icon-arrowleft mui-pull-left"></a>
				<h1 class="mui-title">系统设置</h1>
			</header>
			<div class="mui-content">
				<ul class="mui-table-view">
					<!--<li class="mui-table-view-cell" id="removeLocal">
						<a class="mui-navigate-right">
							清楚缓存
							<span id="size">0MB</span>
						</a>
					</li>-->
					<li class="mui-table-view-cell clsopen" href='../setup/feedback.html'>
						<a class="mui-navigate-right">
							意见反馈
						</a>
					</li>
					<li class="mui-table-view-cell clsopen" href='../setup/about.html'>
						<a class="mui-navigate-right">
							关于我们
						</a>
					</li>

					<!--<li class="mui-table-view-cell">
						<a class="mui-navigate-right">
							版本号
							<span id="version"></span>
						</a>
					</li>-->
					<li class="mui-table-view-cell" id="rate">
						<a class="mui-navigate-right">
							好评鼓励
						</a>
					</li>
				</ul>
			</div>
			<!--show显示-->
			<div class="caching">
				<div class="caching_img">
					<div>
						<div class="rotate">
							<div class="clear">
								<img src="../../images/clear.png" /></div>
							<img src="../../images/rotate.png" />
						</div>
						<!--清除成功-->
						<!--<div class="clear_success"><img src="../../images/clear_success.png"/></div>-->
					</div>
				</div>
				<div>正在清除</div>
			</div>
			<div class="mask"></div>
		</div>
		<script src="../../js/mui.min.js"></script>
		<script src="../../js/libs/zepto.js"></script>
		<script src="../../js/common.js"></script>
		<script type="text/javascript">
			mui.init()
			mui.plusReady(function() {
				plus.cache.calculate(function(size) {
					$("#size").text((size / (1024 * 1024)).toFixed(2) + "M")
				});
				$("#removeLocal").on('tap', function() {
					$(".caching").show()
					plus.cache.clear(function() {
						setTimeout(function() {
							$(".caching").hide()
							$("#size").text("0.00M")
						}, 500)
					});
				})
				//去评分
				document.getElementById("rate").addEventListener('tap', function() {
					if(mui.os.ios) {
						location.href = 'https://itunes.apple.com/cn/app/中国店铺用品商城/id1304073851?l=zh&ls=1&mt=8';
					} else if(mui.os.android) {
						plus.runtime.openURL("market://details?id=com.yaliang.ylstore", function(e) {
							plus.runtime.openURL("market://details?id=com.yaliang.ylstore", function(e) {
								mui.alert("360手机助手和应用宝，你一个都没装，暂时无法评分，感谢支持");
							}, "com.qihoo.appstore");
						}, "com.tencent.android.qqdownloader");
					}
				});
			});
		</script>
	</body>

</html>